package com.itqf.factory;

import com.itqf.controller.UserController;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

/**
 * projectName: springframeworkgp8
 *
 * @author: 赵伟风
 * time: 2021/8/4 16:13
 * description:
 */
@RunWith(SpringJUnit4ClassRunner.class)
//引入配置文件.spring-test我们完成初始化操作
@ContextConfiguration("classpath:spring-context.xml")
public class UseIOC {

    @Autowired
    private UserController userController;

     @Test
     public  void testLogin(){
          userController.login();
     }


}
